<template>
  <div class="c2">
    <button @click="setNum">click to set</button>
  </div>
</template>

<script>
export default {
  methods: {
    setNum() {
      this.$emit('do-set', 10)
    }
  }
}
</script>